<?php
$clientsbyid = array();
foreach($clients as $client){
	$clientsbyid[$client['Client']['id']] = $client['Client']['title'];
}
unset($clients);?>

<h2>edit task</h2>

<ul class="submenu">
<li><?php echo $this->Html->link('View',array('controller' => 'tasks', 'action' => 'index', $client_id)); ?></li>
<li><?php echo $this->Html->link('New',array('controller' => 'tasks', 'action' => 'add', $client_id)); ?></li>
</ul>
<?php
    echo $this->Form->create('Task');
    echo $this->Form->input('title');
	echo $this->Form->input('publish', array('options' => array(1=>'Publish', 0=>'Unpublish')));
    echo $this->Form->input('id', array('type' => 'hidden'));
    echo $this->Form->end('Save Task');
?>
